package cn.dxs.gitee.http.core;

/**
 * http观察者
 *
 * @author lijian
 * @date 2019-09-21 16:13
 */
public interface HttpObserver<T> {
    /**
     * Error
     *
     * @param error
     */
    void onError(Throwable error);

    /**
     * success
     *
     * @param response
     */
    void onSuccess(HttpResponse<T> response);
}
